package com.scuec.tourismwebsite.service;

import com.scuec.tourismwebsite.entity.TodayDataOverview;
import com.scuec.tourismwebsite.mapper.TodayDataOverviewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TodayDataOverviewServiceImpl implements TodayDataOverviewService {

    @Autowired
    private TodayDataOverviewMapper todayDataOverviewMapper;

    @Override
    public List<TodayDataOverview> selectTodayDataOverview() {
        return todayDataOverviewMapper.selectTodayDataOverview();
    }

    @Override
    public TodayDataOverview selectTodayDataOverviewByDate(String date) {
        return todayDataOverviewMapper.selectTodayDataOverviewByDate(date);
    }

    @Override
    public int insertTodayDataOverview(TodayDataOverview todayData) {
        return todayDataOverviewMapper.insertTodayDataOverview(todayData);
    }
}
